package treinamentoClassificacao.cln.cdp;


import java.io.FileInputStream;
import java.io.FileNotFoundException;

import weka.classifiers.functions.MultilayerPerceptron;
import weka.core.Instance;

public class ClassificadorPotencia {

	MultilayerPerceptron mlpPotencia = null;
	
	public ClassificadorPotencia(String nomeArquivoClassificador) throws FileNotFoundException {
		FileInputStream arquivo = new FileInputStream(nomeArquivoClassificador);
	}
	
	public int classificarInstancia(double[] dados) throws Exception {
		Instance ins = new Instance(0, dados);
		return (int) mlpPotencia.classifyInstance(ins);
	}
}
